﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="loginTitle" ContentPlaceHolderID="TitleContent" runat="server">
    登录
</asp:Content>
<asp:Content ID="loginContent" ContentPlaceHolderID="MainContent" runat="server">
    <div id="gridTopic" class="topic">
        <h2>
            Log On</h2>
    </div>
    <%= Html.ValidationSummary("Login was unsuccessful. Please correct the errors and try again.") %>
    <% using (Html.BeginForm())
       { %>
    <div>
        <fieldset>
            <p>
                <label for="username">
                    Username:</label>
                <%= Html.TextBox("username", String.Empty, new { @class = "input-box", @size = 20 }) %>
                <%= Html.ValidationMessage("username") %>
            </p>
            <p>
                <label for="password">
                    Password:</label>
                <%= Html.Password("password", String.Empty, new { @class = "input-box", @size = 20 }) %>
                <%= Html.ValidationMessage("password") %>
            </p>
            <p>
                <%= Html.CheckBox("rememberMe")%>
                <label class="inline" for="rememberMe">
                    Remember Me?</label>
            </p>
            <p>
                <input type="submit" value="Sign in" />
                -
                <%= Html.ActionLink("Join", "Register") %>
            </p>
        </fieldset>
    </div>
    <% } %>
</asp:Content>
